﻿@model TCM.Subject

@{
    ViewBag.Title = "Create";
}

<h2>New Subject</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Subject</legend>
       <ol>        
        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
      
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

       
        <li class="editor-label">
            @Html.LabelFor(model => model.Code)      
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </li>       

        <li class="editor-label">
            @Html.LabelFor(model => model.SubjectCateogryID)       
            @Html.DropDownList("SubjectCateogryID", String.Empty)
            @Html.ValidationMessageFor(model => model.SubjectCateogryID)
        </li>        

             
            <li class="editor-label OneColumn">
            @Html.LabelFor(model => model.Description)
       
            @Html.TextAreaFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </li>       
        </ol>
         <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
